cmake_minimum_required(VERSION 2.8.3)
project(uploadimg)
set(CMAKE_CXX_STANDARD 11)

find_package(catkin REQUIRED COMPONENTS 
    cv_bridge
    image_transport
    roscpp
    std_msgs
)

find_package(OpenCV)

catkin_package()

include_directories(
    #include
    ${OpenCV_INCLUDE_DIRS}
    ${catkin_INCLUDE_DIRS}
    #/home/liang/aliyun-oss-cpp-sdk-master/sdk/include/
    #/home/liang/aliyun-oss-cpp-sdk-master/third_party/include/
)

add_executable(uploadimg
  src/uploadimg.cpp
)

add_dependencies(uploadimg ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})

target_link_libraries(uploadimg
    ${catkin_LIBRARIES}
    ${OpenCV_LIBRARIES}
    /usr/local/lib/libalibabacloud-oss-cpp-sdk.a
    /usr/lib/x86_64-linux-gnu/libcrypto.so
    /usr/lib/x86_64-linux-gnu/libcurl.so
    /usr/lib/x86_64-linux-gnu/libpthread.so
    /usr/lib/x86_64-linux-gnu/libssl.so
    
)
